#include <iostream>
class A{
	int x;
	A(int a)
	{
		x=a; 
	}
public:
	setA(int y)
	{
		x=y;
	}
};
class B:private A{
public:
	B()
	{
		cout<<"B"<<endl;
	}
};
void main()
{
	A a1(2), a2;
	A a3=a1;
	B b;
	b.setA(3);
}
